package com.tencet.dao;

import com.tencet.entity.AccountOne;
import com.tencet.entity.AccountTwo;

/**
 * @author: Fame
 * @date: 2022-07-20 16:24
 * @description:
 */
public interface AccountTwoDAO {
    /**
     * 通过id查询账户信息
     * @param id
     * @return
     */
    public AccountTwo getAccountTwoById(String id);

    /**
     * 开完户后创建电子账户表
     * @param accountTwo
     * @return
     */
    public int insertBean(AccountTwo accountTwo);

    /**
     * 通过电子账户卡2id获取余额
     * @param card_num2
     * @return
     */
    public int getBalance(String card_num2);

    /**
     * 根据卡号进行充值
     * @param sum
     * @return
     */
    public int addBalance(Integer sum,String car_num2);

    /**
     * 通过卡号查询id
     * @param card_num
     * @return
     */
    public String getIdByCardNum(String card_num);
}
